package com.bbs.dao;

import com.bbs.entity.PostUser;
import org.apache.ibatis.annotations.Param;

/**
 * 点赞
 */
public interface PostUserDao {
    /**
     * 查看用户是否点赞
     * @param pid 帖子id
     * @param uid 用户id
     * @return postuser
     */
    PostUser findByPidAndUid(@Param("pid") int pid,@Param("uid") int uid);

    int save(PostUser postUser);
}
